<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/3
  Time: 9:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <%!
            int findYear(int year) {
                int count = 0;
                for (int i = 2000; i < year; i++) {
                    if ((i % 4 == 0 && i % 100 != 0) || i % 400 == 0) {
                        count++;
                    }
                }
                return count;
            }
        %>
        从2000年-2013年期间，共有<%=findYear(2013)%>个闰年
</body>
</html>
